using UnityEngine;

public class EnemyStateControl : MonoBehaviour
{
    private GridSkill _gridSkill;
    private AnimsControl _controlOutLine;
    private void Start()
    {
        _controlOutLine=GetComponent<AnimsControl>();
        _gridSkill=GetComponent<GridSkill>();
    }
    private void OnTriggerStay(Collider other)
    {
        if (other.CompareTag("RotatingBall")) _controlOutLine.PlayAnim("EnemyOutLine");
    }

    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("RotatingBall"))
        {
            _gridSkill.OpenSkill();
        }
    }
}
